package edu.ielab.localansys.ui;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import java.awt.Dimension;
import java.awt.BorderLayout;
import javax.swing.JTabbedPane;

public class AnsysUI extends JPanel {

	private static final long serialVersionUID = 1L;
	private JTabbedPane jTabbedPane = null;
	private ApdlUI apdlUI = null;
	private ResultUI resultUI = null;

	/**
	 * This is the default constructor
	 */
	public AnsysUI() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(688, 550);
		this.setLayout(new BorderLayout());
		this.add(getJTabbedPane(), BorderLayout.CENTER);
	}

	/**
	 * This method initializes jTabbedPane	
	 * 	
	 * @return javax.swing.JTabbedPane	
	 */
	private JTabbedPane getJTabbedPane() {
		if (jTabbedPane == null) {
			jTabbedPane = new JTabbedPane();
			jTabbedPane.addTab("FEA", null, getApdlUI(), null);
			jTabbedPane.addTab("Result", null, getResultUI(), null);
		}
		return jTabbedPane;
	}

	/**
	 * This method initializes apdlUI	
	 * 	
	 * @return edu.ielab.localansys.ui.ApdlUI	
	 */
	private ApdlUI getApdlUI() {
		if (apdlUI == null) {
			apdlUI = new ApdlUI();
		}
		return apdlUI;
	}

	/**
	 * This method initializes resultUI	
	 * 	
	 * @return edu.ielab.localansys.ui.ResultUI	
	 */
	private ResultUI getResultUI() {
		if (resultUI == null) {
			resultUI = new ResultUI();
		}
		return resultUI;
	}

}
